package commands;

import controller.ExecutorsManager;
import controller.ExecutorsManager.GetUserExecutor;
import database.User;

/**
 * class GetUserCommand - execute get user command
 */
public class GetUserCommand {
	
	GetUserExecutor getUserExecutor = ExecutorsManager.getInstance().getGetUserExecutor();
	
	/**
	 * constructor
	 */
	public GetUserCommand(){}

	/**
	 * @param userID - a user name
	 * @return the user details
	 */
	public User action(String userID) 
	{
		// TODO Auto-generated method stub
		return getUserExecutor.getUser(userID);				
	}

}
